export interface ICaptchaImageRes {
	captchaEnabled: boolean
	uuid: string
	img: string
}

export interface ILoginRes {
	/** token */
	access_token: string
}

export interface ILogin {
	/** 账号 */
	userName: string
	/** 密码 */
	password: string
	uuid: string
	code: string
}
type permissions = '*:*:*'
type role = 'admin' | 'editor' | string

export interface IUserInfoRes {
	isDefaultModifyPwd: boolean
	isPasswordExpired: boolean
	permissions: [] | permissions[]
	roles: [] | role[]
	user: {
		avatar: string
		nickName: string
		phoneNumber: string
	}
	// introduction: string
	// avatar: string
	// name: string
	// routes: any[]
}
